﻿//document.body.children[1].children[0].href = "https://www.baidu.com";
let anchorElement = document.getElementById('external-link');
anchorElement.href = "https://www.jd.com";


anchorElement = document.querySelector('#external-link')
anchorElement.href = "https://www.QQ.com";

// remove element
let firstH1Element = document.querySelector('h1');
// firstH1Element.remove();

// innerHTML
console.log(firstH1Element.innerHTML);

firstH1Element.innerHTML = 'Hi1 This is <strong>important</strong>';
